<%--
  Created by IntelliJ IDEA.
  User: 栋
  Date: 2022/11/13
  Time: 17:58
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>主页</title>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <%@include file="/pages/base/base.jsp"%>
</head>
<body >
    <div class="container">
        <%@include file="/pages/base/head.jsp"%>
        <%@include file="/pages/base/topnav_beforLogin.jsp"%>
        <%@include file="/pages/base/search.jsp"%>
        <div class="errorMsg">
            ${requestScope.msg}
        </div>
        <c:forEach items="${sessionScope.items}" var="item">
            <div class="responsive">
                <div class="img">
                    <a target="_blank" href="pages/user/login.jsp">
                        <img src="${item.item_img}" alt="${item.item_name}" width="300" height="200">
                        <div class="name">${item.item_name}</div>
                        <div class="desc">${item.item_introduce}</div>
                        <div class="count">剩余：${item.item_count}</div>
                        <div class="price">￥${item.item_price}</div>
                    </a>
                </div>
            </div>
        </c:forEach>
    </div>
</body>
</html>
